Optimal. Leaf size=91 \[ \frac{f \cos (c+d x)}{a d^2}-\frac{f \sin (c+d x) \cos (c+d x)}{4 a d^2}-\frac{(e+f x) \sin ^2(c+d x)}{2 a d}+\frac{(e+f x) \sin (c+d x)}{a d}+\frac{f x}{4 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0910735, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {4523, 3296, 2638, 4404, 2635, 8} \[ \frac{f \cos (c+d x)}{a d^2}-\frac{f \sin (c+d x) \cos (c+d x)}{4 a d^2}-\frac{(e+f x) \sin ^2(c+d x)}{2 a d}+\frac{(e+f x) \sin (c+d x)}{a d}+\frac{f x}{4 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4523
Rule 3296
Rule 2638
Rule 4404
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{(e+f x) \cos ^3(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac{\int (e+f x) \cos (c+d x) \, dx}{a}-\frac{\int (e+f x) \cos (c+d x) \sin (c+d x) \, dx}{a}\\ &=\frac{(e+f x) \sin (c+d x)}{a d}-\frac{(e+f x) \sin ^2(c+d x)}{2 a d}+\frac{f \int \sin ^2(c+d x) \, dx}{2 a d}-\frac{f \int \sin (c+d x) \, dx}{a d}\\ &=\frac{f \cos (c+d x)}{a d^2}+\frac{(e+f x) \sin (c+d x)}{a d}-\frac{f \cos (c+d x) \sin (c+d x)}{4 a d^2}-\frac{(e+f x) \sin ^2(c+d x)}{2 a d}+\frac{f \int 1 \, dx}{4 a d}\\ &=\frac{f x}{4 a d}+\frac{f \cos (c+d x)}{a d^2}+\frac{(e+f x) \sin (c+d x)}{a d}-\frac{f \cos (c+d x) \sin (c+d x)}{4 a d^2}-\frac{(e+f x) \sin ^2(c+d x)}{2 a d}\\ \end{align*}
Mathematica [A] time = 0.886143, size = 52, normalized size = 0.57 \[ \frac{d (e+f x) (4 \sin (c+d x)+\cos (2 (c+d x)))-f (\sin (c+d x)-4) \cos (c+d x)}{4 a d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.054, size = 114, normalized size = 1.3 \begin{align*} -{\frac{1}{a{d}^{2}} \left ( f \left ( -{\frac{ \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{2}}+{\frac{\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) }{4}}+{\frac{dx}{4}}+{\frac{c}{4}} \right ) +{\frac{cf \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{2}}-{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{2}de}{2}}-f \left ( \cos \left ( dx+c \right ) + \left ( dx+c \right ) \sin \left ( dx+c \right ) \right ) +\sin \left ( dx+c \right ) cf-\sin \left ( dx+c \right ) de \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03606, size = 154, normalized size = 1.69 \begin{align*} -\frac{\frac{4 \,{\left (\sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right )\right )} e}{a} - \frac{4 \,{\left (\sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right )\right )} c f}{a d} - \frac{{\left (2 \,{\left (d x + c\right )} \cos \left (2 \, d x + 2 \, c\right ) + 8 \,{\left (d x + c\right )} \sin \left (d x + c\right ) + 8 \, \cos \left (d x + c\right ) - \sin \left (2 \, d x + 2 \, c\right )\right )} f}{a d}}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6327, size = 167, normalized size = 1.84 \begin{align*} -\frac{d f x - 2 \,{\left (d f x + d e\right )} \cos \left (d x + c\right )^{2} - 4 \, f \cos \left (d x + c\right ) -{\left (4 \, d f x + 4 \, d e - f \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{4 \, a d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 10.7832, size = 787, normalized size = 8.65 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]